package com.woniuxy.service.impl;

import com.woniuxy.entity.Follow;
import com.woniuxy.mapper.FollowMapper;
import com.woniuxy.service.FollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FollowServiceImpl implements FollowService {
    @Autowired
    private FollowMapper followMapper;

    @Override
    public List<Integer> getFollowedIdList(Integer followerId) {
        return followMapper.getFollowedIdList(followerId);
    }

    @Override
    public void add(Follow follow) {
        followMapper.add(follow);
    }

    @Override
    public void cancel(Follow follow) {
        followMapper.cancel(follow);
    }
}
